package com.jbinfo.qingcaowan.studyManager.entity;

import java.util.Date;

public class NoteInfo {
    private String noteNum;

    private String noteIndex;

    private String noteAuthor;

    private String noteTitle;

    private Date noteDate;

    private String noteContent;

    private String noteBookId;

    private String noteChapterId;

    private String noteCardId;

    private String noteStatus;
    
    private String strNoteDate;

    public String getNoteNum() {
        return noteNum;
    }

    public void setNoteNum(String noteNum) {
        this.noteNum = noteNum == null ? null : noteNum.trim();
    }

    public String getNoteIndex() {
        return noteIndex;
    }

    public void setNoteIndex(String noteIndex) {
        this.noteIndex = noteIndex == null ? null : noteIndex.trim();
    }

    public String getNoteAuthor() {
        return noteAuthor;
    }

    public void setNoteAuthor(String noteAuthor) {
        this.noteAuthor = noteAuthor == null ? null : noteAuthor.trim();
    }

    public String getNoteTitle() {
        return noteTitle;
    }

    public void setNoteTitle(String noteTitle) {
        this.noteTitle = noteTitle == null ? null : noteTitle.trim();
    }

    public Date getNoteDate() {
        return noteDate;
    }

    public void setNoteDate(Date noteDate) {
        this.noteDate = noteDate;
    }

    public String getNoteContent() {
        return noteContent;
    }

    public void setNoteContent(String noteContent) {
        this.noteContent = noteContent == null ? null : noteContent.trim();
    }

    public String getNoteBookId() {
        return noteBookId;
    }

    public void setNoteBookId(String noteBookId) {
        this.noteBookId = noteBookId == null ? null : noteBookId.trim();
    }

    public String getNoteChapterId() {
        return noteChapterId;
    }

    public void setNoteChapterId(String noteChapterId) {
        this.noteChapterId = noteChapterId == null ? null : noteChapterId.trim();
    }

    public String getNoteCardId() {
        return noteCardId;
    }

    public void setNoteCardId(String noteCardId) {
        this.noteCardId = noteCardId == null ? null : noteCardId.trim();
    }

    public String getNoteStatus() {
        return noteStatus;
    }

    public void setNoteStatus(String noteStatus) {
        this.noteStatus = noteStatus == null ? null : noteStatus.trim();
    }

    public String getStrNoteDate() {
		return strNoteDate;
	}

	public void setStrNoteDate(String strNoteDate) {
		this.strNoteDate = strNoteDate;
	}

	@Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        NoteInfo other = (NoteInfo) that;
        return (this.getNoteNum() == null ? other.getNoteNum() == null : this.getNoteNum().equals(other.getNoteNum()))
            && (this.getNoteIndex() == null ? other.getNoteIndex() == null : this.getNoteIndex().equals(other.getNoteIndex()))
            && (this.getNoteAuthor() == null ? other.getNoteAuthor() == null : this.getNoteAuthor().equals(other.getNoteAuthor()))
            && (this.getNoteTitle() == null ? other.getNoteTitle() == null : this.getNoteTitle().equals(other.getNoteTitle()))
            && (this.getNoteDate() == null ? other.getNoteDate() == null : this.getNoteDate().equals(other.getNoteDate()))
            && (this.getNoteContent() == null ? other.getNoteContent() == null : this.getNoteContent().equals(other.getNoteContent()))
            && (this.getNoteBookId() == null ? other.getNoteBookId() == null : this.getNoteBookId().equals(other.getNoteBookId()))
            && (this.getNoteChapterId() == null ? other.getNoteChapterId() == null : this.getNoteChapterId().equals(other.getNoteChapterId()))
            && (this.getNoteCardId() == null ? other.getNoteCardId() == null : this.getNoteCardId().equals(other.getNoteCardId()))
            && (this.getNoteStatus() == null ? other.getNoteStatus() == null : this.getNoteStatus().equals(other.getNoteStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNoteNum() == null) ? 0 : getNoteNum().hashCode());
        result = prime * result + ((getNoteIndex() == null) ? 0 : getNoteIndex().hashCode());
        result = prime * result + ((getNoteAuthor() == null) ? 0 : getNoteAuthor().hashCode());
        result = prime * result + ((getNoteTitle() == null) ? 0 : getNoteTitle().hashCode());
        result = prime * result + ((getNoteDate() == null) ? 0 : getNoteDate().hashCode());
        result = prime * result + ((getNoteContent() == null) ? 0 : getNoteContent().hashCode());
        result = prime * result + ((getNoteBookId() == null) ? 0 : getNoteBookId().hashCode());
        result = prime * result + ((getNoteChapterId() == null) ? 0 : getNoteChapterId().hashCode());
        result = prime * result + ((getNoteCardId() == null) ? 0 : getNoteCardId().hashCode());
        result = prime * result + ((getNoteStatus() == null) ? 0 : getNoteStatus().hashCode());
        return result;
    }
}